<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>雪晴工作室管理后台</title>
    <link type="text/css" href="/Xqkq/Public/Admin/css/login.css" rel="stylesheet" />
    <link type="text/css" href="/Xqkq/Public/Admin/css/login-com.css" rel="stylesheet" />
    <link rel="stylesheet" type="text/css" href="/Xqkq/Public/Libs/easyui/themes/bootstrap/easyui.css">
    <link rel="stylesheet" type="text/css" href="/Xqkq/Public/Libs/easyui/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="/Xqkq/Public/Libs/easyui/themes/color.css">
    <script type="text/javascript" src="/Xqkq/Public/Libs/easyui/jquery.min.js"></script>
    <script type="text/javascript" src="/Xqkq/Public/Libs/easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript"   src="/Xqkq/Public/Libs/easyui/locale/easyui-lang-zh_CN.js"></script>
</head>

<body>

	<div class="login">
    	<div class="l-info">
        	<img src="/Xqkq/Public/Admin/img/login-sign.png" />
            <p>
            	欢迎使用E8网络后台管理系统！本系统由<a href="<?php echo ($syscon['E8_WEB_URL']); ?>"> E8网络工作室 </a>研发，E8工作室专注于网站建设、移动平台应用开发、企业级桌面系统开发等！
            </p>
        </div>
        

        <div class="l-form">
        <form id="ff" method="post" novalidate>
        	<p>
            	<label>账&emsp;号：</label>
                <input type="text" class="easyui-textbox" name="username" required="true" />
            </p>
            <p>
            	<label>密&emsp;码：</label>
                <input type="password" class="easyui-textbox" name="password" required="true" />
            </p>
            <p>
                <label>验&emsp;证：</label>
                <input type="text" style="width: 60px;" class="easyui-textbox" name="code" />
                <img id="verifyCode" src="/Xqkq/admin.php/Login/create_verify" onclick="this.src='/Xqkq/admin.php/Login/create_verify/time/' + new Date().getTime()" />
            </p>
        </form>
            <p>
            	<button class="easyui-linkbutton" iconCls="icon-ok" onclick="login();">登陆</button>
            </p>
        </div>

        <div class="clearL h1"></div>
    </div>
    
    <div class="footer">
    	<p>E8网络，爱梦想，爱超越！</p>
        <p>QQ：1685474174&emsp;E-mail: 1685474174@qq.com&emsp;地址：淮南师范学院(泉山校区)逸夫图书馆六楼</p>
    </div>

    <script type="text/javascript">

        function login() {
            $('#ff').form('submit',{
                url: '/Xqkq/admin.php/Login/login',
                onSubmit: function(){
                    return $(this).form('validate');
                },
                success: function(res){
                    var res = eval('('+res+')');
                    if (res.errorMsg){
                        $.messager.alert('登陆失败',res.errorMsg);
                    } else {
                        //$.messager.alert('登陆失败',res.url);
                        window.location.href = '/Xqkq/admin.php/Index';
                    }
                }
            });
        }
    </script>

</body>
</html>